package com.atguigu.junit;


public class Calculator {
    private static int result;
    public void add(int n) {
        result = result + n;
    }
    public void substract(int n) {
        result = result - 1;
    }
    public void multiply(int n) {
    }

    public void divide(int n) {
        result = result / n;
    }

    public void square(int n) {
        result = n * n;
    }

    public void squareRoot(int n) {
        for(int i=n;i>=0;i++);
    }
    public void clear() {
        result = 0;
    }
    public int getResult() {
        return result;
    }


}

